package com.ruoyi.caigou.domain.pojo;

import com.ruoyi.common.core.annotation.Excel;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 与采购申请关联商品id和数量的对象 finer_buy_req_goods
 *
 * @author lvql
 * @date 2024-10-28
 */
public class BuyReqGoods implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    private Integer id;

    /**
     * 采购申请单的编号
     */
    @Excel(name = "采购申请单的编号")
    private String buyReqCode;

    /**
     * 商品id
     */
    @Excel(name = "商品id")
    private Integer goodsId;

    /**
     * 商品数量
     */
    @Excel(name = "商品数量")
    private Integer goodsNumber;

    /**
     * 类型（预留字段），可能其它单据页能引用此表
     */
    @Excel(name = "类型", readConverterExp = "预留字段")
    private Integer type;

    public BuyReqGoods() {
    }

    public BuyReqGoods(String buyReqCode, Integer goodsId, Integer goodsNumber) {

        this.buyReqCode = buyReqCode;
        this.goodsId = goodsId;
        this.goodsNumber = goodsNumber;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setBuyReqCode(String buyReqCode) {
        this.buyReqCode = buyReqCode;
    }

    public String getBuyReqCode() {
        return buyReqCode;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsNumber(Integer goodsNumber) {
        this.goodsNumber = goodsNumber;
    }

    public Integer getGoodsNumber() {
        return goodsNumber;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getType() {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("buyReqCode", getBuyReqCode())
                .append("goodsId", getGoodsId())
                .append("goodsNumber", getGoodsNumber())
                .append("type", getType())
                .toString();
    }

}